/* data */
import TaskPoolListData from '@src/modules/task/taskTypes/taskPool/TaskPoolListData'
/* enum */
import AuthEnum from '@model/enum/AuthEnum'
/* util */
import AuthUtil from '@src/util/auth'
import { isBasicEditionHideSubscribe } from '@shb-lib/version'

class TaskPoolListComputed extends TaskPoolListData {
  /**
   * @description 是否允许工单批量转派
   * @return {Boolean}
   */  
  get allowTaskBatchDispatch(): boolean {
    return AuthUtil.hasAuth(this.auth, AuthEnum.TASK_BATCH_DISPATCH)
  }

  get isBasicEditionHideSubscribe(): boolean {
    return isBasicEditionHideSubscribe() 
  }  
}

export default TaskPoolListComputed
